package com.xnewtech.xplatform.swan.mtm.modular.modname.enums;

import com.xnewtech.xplatform.swan.model.enums.exp.AbstractBaseException;

/**
* @author: mhq
* @date: 2021/9/22
* @description: 异常枚举类
*/
public enum MtmExceptionEnum implements AbstractBaseException {

    /**
     * 该编码字典已经存在
     */
    DATABASE_EXISTED(103014, "该数据库已存在！"),

    /**
     * 字典不存在
     */
    NOT_EXISTED(103015, "数据库不存在！");



    MtmExceptionEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    private int code;

    private String message;

    @Override
    public Integer getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
